package cn.tedu.front.details.controller;

import cn.tedu.common.web.JsonResult;
import cn.tedu.front.details.dao.persest.mapper.JobDetailMapper;
import cn.tedu.front.details.pojo.vo.ListJobCategoryVO;
import cn.tedu.front.details.service.JobCategoryService;
import cn.tedu.front.details.service.JobDetailService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/job")
public class JobDetailController {
    @Autowired
    JobDetailService service;

    @ApiOperation("根据类别查工作")
    @ApiOperationSupport(order = 100)
    @GetMapping("/byDetail")
    public JsonResult getJobBy(Long categoryId){
        return JsonResult.ok(service.listJobDetailByPostTypeId(categoryId));
    }

}
